<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
	<head>
		<meta charset="UTF-8">
		<script type="text/javascript" class="autoinsert" src="js/jquery-2.2.0.min.js"></script>
		<!-- bootstrap规定使用前置设置 -->
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link href="bootstrap-3.3.7-dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="bootstrap-3.3.7-dist/js/bootstrap.js"></script>
		<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
		<link rel="stylesheet" type="text/css" href="css/user_home.css" />
		<script type="text/javascript" class="autoinsert" src="js/layer.js"></script>
		<link rel="stylesheet" type="text/css" href="css/layer.css" />
		<script type="text/javascript" src="js/user_home.js"></script>
		<title>首页</title>
	</head>
	<body>
		
		<input type="hidden" id="login" value="${login}" />
		<script type="text/javascript">
			window.onload = function () {
				if($("#login").val() != "nologin"){
					$("#nologin").hide();
					$("#islogin").show();
				}else{
					$("#nologin").show();
					$("#islogin").hide();
				}
			}
		</script>
		<header class="header">
			<div>
				<div class="logo"><a style="background-image:url(images/qiantai/logo.jpg)" href="home.jsp" title="原点素材">原点素材</a></div>
				<ul class="nav-main">
					<li><a href="qiantai_homeServlet?user_method=all&type='设计模板'&updown=down_all" aria-current="page"> 设计模板</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='矢量元素'&updown=down_all" aria-current="page"> 矢量元素</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='PS元素'&updown=down_all" aria-current="page"> PS元素</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='设计插件'&updown=down_all" aria-current="page"> 设计插件</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='图标icons'&updown=down_all" aria-current="page"> 图标icons</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='PPT/keynote模板'&updown=down_all" aria-current="page"> PPT/keynote模板</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='mockup样机'&updown=down_all" aria-current="page"> mockup样机</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='英文字体'&updown=down_all" aria-current="page"> 英文字体</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='免费素材'&updown=down_all" aria-current="page"> 免费素材</a></li>
					<li><a href="qiantai_homeServlet?user_method=all&type='其他'&updown=down_all" aria-current="page"> 其他</a></li>
				</ul>
				<ul class="nav-right">
					<li class="nav-search">
						<a href="#" class="search-loader" title="搜索" onclick="show_search()"><i class="fa fa-search"></i></a>
					</li>				
					<li class="nav-login" id="nologin"><a href="#" onclick="to_login()"><span>登录</span></a></li>
					<li class="nav-login" hidden="hidden" id="islogin"><a href="qiantai_topServlet?user_method=mine"><span>${login}</span></a></li>
				</ul>
			</div>
		</header>

	</body>
</html>
